#ifndef EDITDICTDATADLG_H
#define EDITDICTDATADLG_H

#include <QDialog>
#include <Utils.h>

#include <Entity/DictData.h>

#include <api/systemManager/dictionarymanagerapi.h>

namespace Ui {
class EditDictDataDlg;
}

class EditDictDataDlg : public QDialog
{
    Q_OBJECT

public:
    explicit EditDictDataDlg(int id,QString type = "",QWidget *parent = nullptr);
    ~EditDictDataDlg();

signals:
    void success();

private slots:
    void on_btn_ok_clicked();

    void on_btn_cancel_clicked();

private:
    Ui::EditDictDataDlg *ui;
    QString type;
    int id;
    Utils utils;
    DictData dictData;
    DictionaryManagerApi api;

    void init();
};

#endif // EDITDICTDATADLG_H
